﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MWRCommunicationLibrary.ARS408
{
    public class Out_Object_2_Quality : MWRData
    {
        public override int DefaultCanID
        {
            get
            {
                return 0x60C;
            }
        }
        public override int Length
        {
            get
            {
                return 7;
            }
        }

        [ParamDecodor(0, 8)]
        public int ID { get; set; }

        [ParamDecodor(11, 5)]
        public int DisLong_rms { get; set; }

        [ParamDecodor(17, 5)]
        public int VrelLong_rms { get; set; }

        [ParamDecodor(22, 5)]
        public int DistLat_rms { get; set; }

        [ParamDecodor(28, 5)]
        public int VrelLat_rms { get; set; }

        [ParamDecodor(34, 5)]
        public int ArelLat_rms { get; set; }

        [ParamDecodor(39, 5)]
        public int ArelLong_rms { get; set; }

        [ParamDecodor(45, 5)]
        public int Orientation_rms { get; set; }

        /// <summary>
        /// 0x0: deleted 
        /// 0x1: new 
        /// 0x2: measured 
        /// 0x3: predicted 
        /// 0x4: deleted for merge 
        /// 0x5: new from merge
        /// </summary>
        [ParamDecodor(50, 3)]
        public int MeasState { get; set; }

        [ParamDecodor(53, 3)]
        public int ProbOfExist { get; set; }
    }
}
